<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="/template.xhtml">
	<ui:define name="tituloPagina">
		<p:outputLabel value="#{msgs['paginas.cancelar.compromisso']}" />
	</ui:define>
	<ui:define name="principal">

		<p:panelGrid columns="2">
			<p:outputLabel value="#{msgs['campos.titulo.reuniao']}" />
			<p:inputText
				value="#{compromissoBean.compromisso.reuniao.dataReuniao}"
				disabled="true" style="width: 225px;">
				<f:convertDateTime pattern="dd/MM/yyyy HH:mm" timeZone="GMT-03:00" />


			</p:inputText>

			<p:outputLabel value="#{msgs['campos.titulo.numero.compromisso']}" />
			<p:inputText style="width: 225px;"
				value="#{compromissoBean.compromisso.numeroCompromisso}"
				disabled="true" />



			<p:outputLabel value="#{msgs['campos.titulo.prazo.conclusao']}" />
			<p:inputText style="width: 225px;" disabled="true" />







			<p:outputLabel value="#{msgs['campos.titulo.solicitante']}" />
			<p:inputText style="width: 225px;"
				value="#{compromissoBean.compromisso.solicitante.nome}"
				disabled="true" />


			<p:outputLabel value="#{msgs['campos.titulo.responsavel']}" />
			<p:inputText style="width: 225px;"
				value="#{compromissoBean.compromisso.pessoa.nome}" disabled="true" />



			<p:outputLabel value="#{msgs['campos.titulo.projeto']}" />
			<p:inputText style="width: 225px;"
				value="#{compromissoBean.compromisso.projeto.nome}" disabled="true" />





			<p:outputLabel value="#{msgs['campos.titulo.descricao']}" />
			<p:inputTextarea rows="5" style="width: 225px;"
				value="#{compromissoBean.compromisso.descricao}" disabled="true" />



		</p:panelGrid>



		<p:panelGrid columns="1"
			style="margin-left:558px; margin-top: -378px;">
			<p:outputLabel value="#{msgs['campos.titulo.motivo']}" />
			<p:inputTextarea rows="4" style="width: 400px;"
				value="#{compromissoBean.compromissoRecusado.motivo}" />

		</p:panelGrid>
		<br></br>
		<br></br>
		<br></br>

		<p:commandButton value="Recusar"
			style="margin-left:557px; margin-bottom: -493px;"
			action="#{compromissoBean.salvarCompromissoRecusado}" ajax="false"></p:commandButton>

		<p:commandButton value="Cancelar"
			action="#{compromissoBean.cancelarConclusaoCompromisso()}"
			immediate="true" ajax="false"></p:commandButton>


	</ui:define>
</ui:composition>
</html>